package com.tc.shiro.service.impl;

import com.tc.shiro.model.PermissionModel;
import com.tc.shiro.model.QueryRoleRespModel;
import com.tc.shiro.repository.PortalRolePermissionRelRepository;
import com.tc.shiro.service.RoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;

@Service
public class RoleServiceImpl implements RoleService {

    @Autowired
    private PortalRolePermissionRelRepository portalRolePermissionRelRepo;

    @Override
    public List<PermissionModel> queryPermissionByRoleNo(String roleNo, String mercNo) {
        return portalRolePermissionRelRepo.queryPermissionByRoleNo(roleNo);
    }

    @Override
    public QueryRoleRespModel queryRole(String requestId, String mercNo, String roleNo) {
        return null;
    }
}
